<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:62:"D:\phpStudy\WWW\auth/application/web\view\line_goods\edit.html";i:1496201819;s:58:"D:\phpStudy\WWW\auth/application/web\view\public\base.html";i:1496201802;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>商家后台管理</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<!--[if lt IE 9]>
    	<meta http-equiv="refresh" content="0;ie.html" />
    	<![endif]-->
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__CSS__/bootstrap.min.css" rel="stylesheet">
		<link href="__CSS__/font-awesome.min.css" rel="stylesheet">
		<link href="__CSS__/animate.min.css" rel="stylesheet">
		<link href="__CSS__/style.min.css" rel="stylesheet">
		<link href="__CSS__/admin.css" rel="stylesheet"><link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> 
	</head>
	<style>
		.lactive {
			background: #293846;
			color: #FFFFFF;
			border-bottom: solid 2px #1ab394
		}
		
		.lactive> a {
			color: #ffffff!important;
		}
	</style>

	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		<div id="wrapper">
			<!--左侧导航开始-->
			<div class="navbar_top_nav">
				<ul class="nav navbar-top-links navbar-left">
					<li class="nspecial">
						<span class="block m-t-xs"><strong class="font-bold">
							<?php echo session('storeInfo')['store_name']; if($chainsotrename!==''): ?>
							(<?php echo $chainsotrename; ?>)
							<?php endif; ?>
						</strong></span>
					</li>
					<li class="hidden-xs" id='shouye'>
						<a href="<?php echo url('index/index'); ?>">
							&nbsp;&nbsp;<i class="fa fa-home"></i>首页&nbsp;&nbsp;
						</a>
					</li>
					<?php if(is_array($store_top_menus) || $store_top_menus instanceof \think\Collection): if( count($store_top_menus)==0 ) : echo "" ;else: foreach($store_top_menus as $key=>$st): ?>
					<li id="top_menu<?php echo $st['id']; ?>">
						<a href="/<?php echo $st['name']; ?>?top_menu_id=<?php echo $st['id']; ?>"><i class='<?php echo $st['icon']; ?>'></i><?php echo $st['title']; ?></a>
					</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				<ul class="nav navbar-top-links navbar-right">
					<li class="hidden-xs">
						<a href="/help" target="_blank">
							<i class="fa fa-chain"></i>帮助文档
						</a>
					</li>

					<li class="hidden-xs">
							<a data-toggle="dropdown" href="#">
								<i class="fa fa-chain"></i>系统管理<b class="caret"></b>
							</a>
							<ul class="dropdown-menu animated fadeInRight m-t-xs">
								<li>
									<a onclick="jiaoban()" }>
										<i class="fa fa-chain"></i>交班
									</a>
								</li>
								<li class="divider"></li>
								<li>
									<a href="<?php echo url('index/clear'); ?>">
										<i class="fa fa-refresh"></i>清除缓存
									</a>
								</li>
								<li>
									<a href="<?php echo url('login/logout'); ?>"><i class="fa fa-sign-out"></i>退出系统</a>
								</li>
							</ul>
					</li>
				</ul>

			</div>
			<nav class="navbar-default navbar-static-side" role="navigation" style="margin-top: 60px;">

				<div class="sidebar-collapse">
					<ul class="nav" id="side-menu">

						<li class="menu" style="text-align: center; background-color:#08575B;">
							<a class="navbar-minimalize" href="#" style="text-align: center; background-color:#08575B;">
								<i class="fa fa-bars"></i>
							</a>
						</li>
						<?php if(!empty($menu)): if(is_array($menu) || $menu instanceof \think\Collection): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
						<li class="menu" style="text-align:left">
							<a href="/<?php echo $vo['name']; ?>?top_menu_id=<?php echo $top_menu_id; ?>">
								<i class="<?php echo $vo['icon']; ?>" style="width: 15px;"></i>
								<span class="nav-label"><?php echo $vo['title']; ?>&nbsp;&nbsp; </span>
							</a>
						</li>
						<?php endforeach; endif; else: echo "" ;endif; endif; ?>
					</ul>
				</div>
			</nav>
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1">
				<div class="row border-bottom" style="display: none;">
					<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;">
						<div class="navbar-header">
							<a class="navbar-minimalize " href="#">
							</a>
						</div>

					</nav>
				</div>
				<div class="row" style="margin-top: 66px;">
					
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="<?php echo url('index/index'); ?>"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="<?php echo url('index'); ?>">商品管理</a>
		</li>
		<li><strong>编辑商品</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="<?php echo url('edit'); ?>">
					<input type="hidden" name="id" value="<?php echo $model['id']; ?>" />
					<!--基本信息-->
					<div class="panel panel-default">
					<div class="panel-heading"> 基本信息</div>
						<div class="panel-body">
						<div class="form-group">
							<label class="col-sm-3 control-label">商品编码：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_no" name="goods_no" value="<?php echo $model['goods_no']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品名称：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_name" name="goods_name" value="<?php echo $model['goods_name']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品图片：</label>
							<div class="input-group col-sm-4">
								<input type="hidden" id="thumb" name="thumb" value="<?php echo $model['thumb']; ?>"/>
								<input id="upload" name="upload" type="file" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">分类：</label>
							<div class="input-group col-sm-4">
	                           	<select class="form-control" name="goods_typeid" id="goods_typeid">
									<option value="0">默认分类</option>
									<?php if(is_array($typelist) || $typelist instanceof \think\Collection): $i = 0; $__LIST__ = $typelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
										<option value="<?php echo $vo['id']; ?>" <?php if($model['goods_typeid']==$vo['id']): ?> selected="selected" <?php endif; ?>><?php echo $vo['name']; ?>	
										</option>
									<?php endforeach; endif; else: echo "" ;endif; ?>		
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商家平台分类：</label>
							<div class="input-group col-sm-4">
	                           	<select class="form-control" name="trade_id" id="trade_id">
									<?php if(is_array($trade_typelist) || $trade_typelist instanceof \think\Collection): $i = 0; $__LIST__ = $trade_typelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vl): $mod = ($i % 2 );++$i;?>
										<option value="<?php echo $vl['id']; ?>"><?php echo $vl['name']; ?>	
										</option>
									<?php endforeach; endif; else: echo "" ;endif; ?>		
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">商品简介：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="comment" name="comment" value="<?php echo $model['comment']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">单位：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="unit" name="unit" value="<?php echo $model['unit']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">市场价：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="sale_price" name="sale_price" value="<?php echo $model['sale_price']; ?>" class="form-control" onkeyup="clearNoNums(this)" onafterpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">原价：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="original_price" name="original_price" value="<?php echo $model['original_price']; ?>" class="form-control" onkeyup="clearNoNums(this)" onafterpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">配送方式：</label>
							<div class="input-group col-sm-4">
								<?php if($model['express_type']==3): ?>
									<input type="checkbox" name="express_type[]" value=1 checked>快递配送
									<input type="checkbox" name="express_type[]" value=2 checked>o2o(到店自取)
								<?php else: ?>
									<input type="checkbox" name="express_type[]" value=1 <?php if($model['express_type']==1): ?>checked<?php endif; ?>>快递配送
									<input type="checkbox" name="express_type[]" value=2 <?php if($model['express_type']==2): ?>checked<?php endif; ?>>o2o(到店自取)
								<?php endif; ?>
							</div>
						</div>
						<!--<div class="form-group">
							<label class="col-sm-3 control-label">会员优惠方式：</label>
							<div class="input-group col-sm-8">
								<div class="row">
	                                <div class="col-md-3">
										<input type="radio" id="member_discounttype" name="member_discounttype" value="1" <?php if($model['member_discounttype']==1): ?>checked<?php endif; ?>/> 会员等级折扣 最低折扣
							        </div>
	                                <div class="col-md-3">
                    			 	 	<input type="text" id="lowest_discount" name="lowest_discount" value="<?php echo $model['lowest_discount']; ?>" <?php if($model['member_discounttype']!=1): ?>disabled="true"<?php endif; ?> class="form-control" onkeyup="clearNoNum(this)" onafterpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
                    			 	 	<label class="col-sm-3 control-label" style="position: absolute;text-align: left;">%</label>
	                                </div>                           		
	                       	 	</div>	                        	
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"></label>
							<div class="input-group col-sm-8">
								<div class="row">
	                                <div class="col-md-3">
										<input type="radio" id="member_discounttype" name="member_discounttype" value="2" <?php if($model['member_discounttype']==2): ?>checked<?php endif; ?>/> 会员价
							        </div>
	                                <div class="col-md-3">
                        			 	 <input type="text" id="member_price" name="member_price" value="<?php echo $model['member_price']; ?>" <?php if($model['member_discounttype']!=2): ?>disabled="true"<?php endif; ?> class="form-control" onkeyup="clearNoNums(this)" onafterpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
	                                </div>
	                        	</div>
							</div>
						</div>-->
						</div>
					</div>
					<!--基本信息end-->
					
					<!--设置-->
					<div class="panel panel-default">
					<div class="panel-heading"> 设置</div>
						<div class="panel-body">
						<div class="form-group">
							<label class="col-sm-3 control-label">管理库存：</label>
							<div class="input-group col-sm-8">
								<div class="row">
	                                <div class="col-md-1">
										<input name="stock_flag" id="stock_flag" type="checkbox" <?php if($model['stock_flag']==1): ?>checked<?php endif; ?>/>
							        </div>
	                                <div class="col-md-5 stock" <?php if($model['stock_flag']!=1): ?> style="display:none" <?php endif; ?>>
                        			 	 <input type="text" id="stock" name="stock" value="<?php echo $model['stock']; ?>" class="form-control" />
	                                </div>
	                        	</div>            
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">允许积分兑换：</label>
							<div class="input-group col-sm-4">
                                <input name="bouns_flag" id="bouns_flag" type="checkbox" <?php if($model['bouns_flag']==1): ?>checked<?php endif; ?>/>
							</div>
						</div>
						<div class="form-group bouns" <?php if($model['bouns_flag']!=1): ?> style="display:none" <?php endif; ?>>
							<label class="col-sm-3 control-label">兑换积分：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="exchange_bouns" name="exchange_bouns" value="<?php echo $model['exchange_bouns']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">允许线上商城购买：</label>
							<div class="input-group col-sm-4">
                                <input name="wxbuy_flag" id="wxbuy_flag" type="checkbox" <?php if($model['wxbuy_flag']==1): ?>checked<?php endif; ?>/>
							</div>
						</div>
						<div class="form-group wxbuy" <?php if($model['wxbuy_flag']!=1): ?> style="display:none" <?php endif; ?>>
							<label class="col-sm-3 control-label">图文详情：</label>
							<div class="input-group col-sm-6">
								<textarea id="content" name="content" style="height: 400px;">
									<?php echo $model['content']; ?>
								</textarea>
							</div>
						</div>
						</div>
					</div>
					<!--设置end-->
					
					<!--提成设置-->
					<!--<div class="panel panel-default">
					<div class="panel-heading"> 提成设置</div>
						<div class="panel-body">
						<div class="form-group">
							<label class="col-sm-3 control-label">导购提成额1(元)：</label>
							<div class="input-group col-sm-4">
								仅在提成方式为“按商品/套餐提成额之和提成”时有效
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"></label>
							<div class="input-group col-sm-4">
								<input type="text" id="commission_cash1" name="commission_cash1" value="<?php echo $model['commission_cash1']; ?>" class="form-control" onkeyup="clearNoNum(this)" onafterpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">导购提成额2：</label>
							<div class="input-group col-sm-4">
								仅在提成方式为“按商品/套餐选择导购”的非计次消费类业务有效
							</div>
						</div>
						</div>
					</div>-->
					<!--提成设置end-->
					
					<!--自定义属性-->
					<div class="panel panel-default">
					<div class="panel-heading"> 自定义属性</div>
						<div class="panel-body">
						<div class="form-group">
							<label class="col-sm-3 control-label"><?php if($attr['goods_propertyv1']): ?><?php echo $attr['goods_propertyv1']; else: ?>自定义属性1<?php endif; ?>：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_property1" name="goods_property1" value="<?php echo $model['goods_property1']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"><?php if($attr['goods_propertyv2']): ?><?php echo $attr['goods_propertyv2']; else: ?>自定义属性2<?php endif; ?>：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_property2" name="goods_property2" value="<?php echo $model['goods_property2']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"><?php if($attr['goods_propertyv3']): ?><?php echo $attr['goods_propertyv3']; else: ?>自定义属性3<?php endif; ?>：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_property3" name="goods_property3" value="<?php echo $model['goods_property3']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"><?php if($attr['goods_propertyv4']): ?><?php echo $attr['goods_propertyv4']; else: ?>自定义属性4<?php endif; ?>：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_property4" name="goods_property4" value="<?php echo $model['goods_property4']; ?>" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label"><?php if($attr['goods_propertyv5']): ?><?php echo $attr['goods_propertyv5']; else: ?>自定义属性5<?php endif; ?>：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="goods_property5" name="goods_property5" value="<?php echo $model['goods_property5']; ?>" class="form-control" />
							</div>
						</div>					
						</div>
					</div>
					<!--自定义属性-->
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">							
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;
							<a href="<?php echo url('index'); ?>" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>

				</div>
			</div>
			<!--右侧部分结束-->
		</div>
		<div class="footer">
			<div class="pull-right"> 版权所有 Project &copy; 2017-2020 版权所有</div>
		</div>
		<script src="__JS__/jquery.min.js"></script>
		<script src="__JS__/bootstrap.min.js"></script>
		<script src="__JS__/jquery.metisMenu.js"></script>
		<script src="__JS__/jquery.slimscroll.min.js"></script>
		<script src="__LIB__/layer/layer.js"></script>
		<script src="__JS__/core.min.js"></script>
		<script src="__JS__/pace.min.js"></script>
		<script src="__JS__/autocomplete.js"></script>
		<script>
			// 文件上传URL
			var __UPLOAD_URL__ = "<?php echo url('web/upload/index'); ?>";
			var __CURRENT_URL__ = "<?php echo $current_url; ?>";
			console.log(__CURRENT_URL__);
		</script>
		<script src="__JS__/admin.js"></script>
		<script>
			var show = "<?php echo $is_show_left; ?>";
			if(show == 0) {
				$("body").toggleClass("mini-navbar"), SmoothlyMenu();
			}
		</script>
		<script>
			var top_menu_id = "<?php echo $top_menu_id; ?>";
			$(".lactive").removeClass("lactive");
			if(top_menu_id != "") {
				$("#top_menu" + top_menu_id).addClass("lactive");
			} else {
				$("#shouye").addClass("lactive");
			}
			//交班操作
			function jiaoban1() {
				layer.open({
					type: 2,
					id: "jioaban_list",
					area: ['750px', '350px'],
					title: '收入',
					scrollbar: false,
					content: '/web/index/jiaoban_list' //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
				});
			}

			function jiaoban() {
				$.ajax({
					url: '/web/index/jiaoban_list',
					data: {},
					type: "post",
					success: function(data) {
						var info = data.data;
						var html = '<div class="input-group m-b" style="width:100%;text-align: center;">' +
							'<span style="color: red;font-size: 20px;">￥' +
							'<span id="total_price" style="color: red;font-size: 50px;" class="b_rs_pan">' + info.zsr + '</span></span>' +
							'</br><span>工作时间：' + info.startime + '至' + info.endtime + '</span>' +
							'</div>' +
							'<table class="table table-bordered table-hover">' +
							'<thead>' +
							'<tr class="long-th">' +
							'<th>现金</br>￥' + info.xianjin + '</th>' +
							'<th>银行卡</br>￥' + info.yinhangka + '</th>' +
							'<th>微信</br>￥' + info.weixin + '</th>' +
							'<th>支付宝</br>￥' + info.zhifubao + '</th>' +
							'<th>自定义</br>￥' + info.zidingyi + '</th>' +
							'</tr>' +
							'</thead>' +
							'</table>';
						var index = layer.open({
							title: '确认交班',
							zIndex: "addjb",
							area: ['750px', '300px'],
							content: html,
							btn: ['确定', '取消'],
							yes: function(index, layero) {
								//按钮【按钮一】的回调
								$.ajax({
									url: '/web/index/addjb',
									data: {
										total_icome: info.zsr,
										cash: info.xianjin,
										card_icome: info.yinhangka,
										wx_icome: info.weixin,
										zfb_icome: info.zhifubao,
										zdy_icome: info.zidingyi
									},
									type: "post",
									success: function(data) {
										layer.close(index);
										callback1(data);
									}
								})
							},
							btn2: function(index, layero) {
								layer.close(index);
							}
						});
					}
				});
			}

			function callback1(data) {
				if(data.code == 200) {
					var info = data.data;
					var html = '<div>' +
						'<div style="text-align: center;">' +
						'<i class="fa fa-check" style="color: #35b12c;font-size: 60px;font-weight: 600;"></i>' +
						'<p><span class="b_rs_pan">交班成功</span> </p>' +
						'</div>' +
						'<div class="form-group" style="padding-left: 100px;"><label class="col-sm-5 control-label">交班时间：</label><div class="input-group col-sm-7">' + info.time + '</div></div>' +
						'<div class="form-group" style="padding-left: 100px;"><label class="col-sm-5 control-label">操作员：</label><div class="input-group col-sm-7">' + info.mobile + '</div></div>' +
						'<div class="form-group" style="padding-left: 100px;"><label class="col-sm-5 control-label">收入(元)：</label><div class="input-group col-sm-7">' + info.zsr + '</div></div>' +
						'</div>';
					var index = layer.open({
						title: '交班成功',
						area: ['500px', '350px'],
						content: html,
						btn: ['我知道了'],
						yes: function(index, layero) {
							layer.close(index);
						}
					});

				} else {
					layer.msg(data.msg);
					window.reload();
				}

			}
		</script>
		
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__LIB__/ueditor/ueditor.all.js" type="text/javascript"></script>
<script>
	upload_one('<?php echo $model['thumb']; ?>');
	//编辑器
	var ueditor = UE.getEditor('content');
	$(function() {
		$("#myForm").validate({
			rules: {
				goods_no: "required",
				goods_name: "required",
				unit: "required"
			},
			messages: {
				goods_no: ICON.error + "请输入商品编码",
				goods_name: ICON.error + "请输入商品名称",
				unit: ICON.error + "请输入商品单位"
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
<script>
	function clearNoNum(obj)
	{
		obj.value = obj.value.replace(/^[1-9]\d{2,}[\.]?\d*/,"100");
	   	obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
	   	obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.
	   	obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的.
	   	obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");	   
	}
		function clearNoNums(obj)
	{
	   	obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
	   	obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.
	   	obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的.
	   	obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");	   
	}
</script>
<script>
	$("input[name='wxbuy_flag']").click(function(){
		var value = document.getElementById("wxbuy_flag").checked;
		if(value == true){
			$(".wxbuy").show();
		}else if(value == false){
			$(".wxbuy").hide();
		}
	})
	
	$("input[name='bouns_flag']").click(function(){
		var value = document.getElementById("bouns_flag").checked;
		if(value == true){
			$(".bouns").show();
		}else if(value == false){
			$(".bouns").hide();
		}
	})
	
	$("input[name='stock_flag']").click(function(){
		var value = document.getElementById("stock_flag").checked;
		if(value == true){
			$(".stock").show();
		}else if(value == false){
			$(".stock").hide();
		}
	})
	
	$("input[name='member_discounttype']").click(function(){
		var value = document.getElementById("member_discounttype").checked;
		if(value == true){
			$("input[name='member_price']").attr('disabled',true);
			$("input[name='lowest_discount']").attr('disabled',false);
		}else if(value == false){
			$("input[name='lowest_discount']").attr('disabled',true);
			$("input[name='member_price']").attr('disabled',false);
		}
	})
</script>

	</body>

</html>